//
//  TitlePresentationController.m
//  SinaWebo
//
//  Created by 王方伟 on 2017/1/17.
//  Copyright © 2017年 亦心. All rights reserved.
//

#import "TitlePresentationController.h"

@implementation TitlePresentationController

- (void)containerViewWillLayoutSubviews{
    [super containerViewWillLayoutSubviews];
    UIView *view = self.presentedView;
    view.frame = self.frame;
    UITapGestureRecognizer *tapGR = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(onClickDismis)];
    [self.containerView addGestureRecognizer:tapGR];
}

- (void)onClickDismis{
    [self.presentedViewController dismissViewControllerAnimated:YES completion:nil];
}
@end
